package kr.pe.johnkim.waiting.mobile.service;

import kr.pe.johnkim.waiting.mobile.dao.WaitingBusinessKindDao;
import kr.pe.johnkim.waiting.mobile.domain.WaitingBusinessKind;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : John_Kim <cale9797@gmail.com>
 * @date : 13. 8. 29.
 */
@Service
public class WaitingBusinessKindServiceImpl implements WaitingBusinessKindService {

    // SLF4J Logging
    private Logger logger = LoggerFactory.getLogger(WaitingBusinessKindServiceImpl.class);

    @Autowired
    private WaitingBusinessKindDao waitingBusinessKindDao;

    /**
     * 업종 목록을 가져 온다.
     *
     * @param waitingBusinessKind
     * @return
     */
    @Override
    public List<WaitingBusinessKind> selectBusinessKindList(WaitingBusinessKind waitingBusinessKind) {
        logger.info("selectBusinessKindList");
        return this.waitingBusinessKindDao.selectBusinessKindList(waitingBusinessKind);
    }
}
